<cfprocessingdirective suppresswhitespace="yes">
<!--- 
***** REVISION *****
10/18/06: This is a new tag
 --->
 	
<cfswitch expression="#thisTag.executionMode#">
	<cfcase value="start">
		<cfset tag = "hidden"/>

		<cfsavecontent variable="attributeCombination">
		<strong>Available Attributes are:</strong>
		<LI>Required attributes: NAME or ID or VALUE.</LI>
		</cfsavecontent>				

		<cfinclude template="inc/start.cfm"/>
		
		<!--- Process NAME attribute --->
		<cfif not structKeyExists(attributes,'name')>		
			<cfif structKeyExists(attributes,'id')>
				<cfparam name="attributes.value" default="#parent.setValue('id','name',attributes)#"/>
			<cfelseif structKeyExists(attributes,'value')>
				<cfset attributes.value = parent.setValue('value','name',attributes)/>
			<cfelseif isDefined("request.ui.form.#tag#.html") and structKeyExists(request.ui.form[tag].html,'name')>
				<cfset attributes.name = request.ui.form[tag].html.name/>
			</cfif>
			<cfif not structKeyExists(attributes, 'name')>
				<cfset parent.showException(tag,'You must specify at least one attribute of NAME, ID, or VALUE.',3,attributeCombination)/>
			</cfif>
		</cfif>
		<cfparam name="attributes.value" default="#parent.setValue('name','',attributes)#"/>

		<!--- *** CONFIG VARIABLES *** --->
		<cfset config = parent.getConfig(tag,attributes,request,parent)/>
		
		<!--- *** HTML VARIABLES *** --->
		<cfset attributes = parent.getHtml(tag,attributes,request)/>
				
		<!--- process VALUE --->
		<cfset attributes.value = parent.processValue(attributes.value,caller,attributes)/>
		<cfparam name="attributes.id" default="#attributes.name#"/>
	</cfcase>
	
	
	<cfcase value="end">
		<cfinclude template="inc/field.cfm"/>
	</cfcase>
</cfswitch>
</cfprocessingdirective>